package com.itheima.service;

import com.itheima.pojo.Admin;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

public interface AdminService {
    Admin findByusername(String username);

    Map<String, Object> getMenu(String userName);

    void add(Admin admin);

    void update(Admin admin);

    Map<String, Object> assign(String adminUid);

    void delete(String adminUid);

    void forceLogout(List<String> tokenList);

    Map<String, Object> getList(String keyword, Long currentPage, Long pageSize, HttpServletRequest request);

    Admin findByUid(String adminUid);
}
